package com.web.service;

import java.util.List;
import java.util.Map;

import com.web.model.PageBean;
import org.springframework.stereotype.Service;


/**
 * 基础的Service接口
 * @author wzy
 * @date 2016-03-28 15:15:00
 */
@Service
public interface BaseService<T> {
	
	public int deleteByPrimaryKey(Long id);

	public int insert(T record);

	public T selectByPrimaryKey(Long id);

	public int updateByPrimaryKey(T record);

	public List<T> selectList(Map<String,Object> map);

	public PageBean<T> selectListByPage(Map<String,Object> map);
   
	public T selectByModelSelective(T record);
	
	public int selectListCount(Map<String, Object> map);
	
	public void insertList(List<T> list);
}